// swift-tools-version: 5.9
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription

let package = Package(
    name: "Moya",
    platforms: [
        .iOS(.v13)
    ],
    products: [
        .library(name: "Moya", targets: ["Moya"]),
        .library(name: "CombineMoya", targets: ["CombineMoya"])
    ],
    dependencies: [
        .package(url: "https://gitee.com/commind-vender/Alamofire.git", .upToNextMajor(from: "5.0.0"))
    ],
    targets: [
        .target(
            name: "Moya",
            dependencies: [
                .product(name: "Alamofire", package: "Alamofire"),
            ],
            exclude: [
                "Supporting Files/Info.plist"
            ],
            swiftSettings: [
            //.swiftLanguageVersion(.v5)
                .unsafeFlags(["-swift-version", "5"])
            ]
        ),
        .target(
            name: "CombineMoya",
            dependencies: [
                "Moya"
            ]
        )
    ]
)
